package org.jeecg.modules.flow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: ru_task
 * @Author: jeecg-boot
 * @Date: 2021-12-28
 * @Version: V1.0
 */
@Data
@TableName("ACT_RU_TASK")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "运行任务对象", description = "ACT_RU_TASK")
public class ActRuTask implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "ID_", type = IdType.AUTO)
    @TableField("id_")
    @ApiModelProperty(value = "id")
    private String id;
    /**
     * rev
     */
    @TableField("REV_")
    @ApiModelProperty(value = "rev_")
    private Integer rev;
    /**
     * executionId
     */
    @TableField("EXECUTION_ID_")
    @ApiModelProperty(value = "executionId_")
    private String executionId;
    /**
     * procInstId
     */
    @TableField("PROC_INST_ID_")
    @ApiModelProperty(value = "procInstId_")
    private String procInstId;
    /**
     * procDefId
     */
    @TableField("PROC_DEF_ID_")
    @ApiModelProperty(value = "procDefId_")
    private String procDefId;
    /**
     * name
     */
    @TableField("NAME_")
    @ApiModelProperty(value = "name_")
    private String name;
    /**
     * parentTaskId
     */
    @TableField("PARENT_TASK_ID_")
    @ApiModelProperty(value = "parentTaskId_")
    private String parentTaskId;
    /**
     * description
     */
    @Excel(name = "description", width = 15)
    @TableField("DESCRIPTION_")
    @ApiModelProperty(value = "description_")
    private String description;
    /**
     * taskDefKey
     */
    @TableField("TASK_DEF_KEY_")
    @ApiModelProperty(value = "taskDefKey_")
    private String taskDefKey;
    /**
     * owner
     */
    @TableField("OWNER_")
    @ApiModelProperty(value = "owner")
    private String owner;
    /**
     * assignee
     */
    @TableField("ASSIGNEE_")
    @ApiModelProperty(value = "assignee")
    private String assignee;
    /**
     * delegation
     */
    @TableField("DELEGATION_")
    @ApiModelProperty(value = "delegation")
    private String delegation;
    /**
     * priority
     */
    @TableField("PRIORITY_")
    @ApiModelProperty(value = "priority")
    private Integer priority;
    /**
     * createTime
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "createTime")
    @TableField("CREATE_TIME_")
    private Date createTime;
    /**
     * dueDate
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "dueDate")
    @TableField("DUE_DATE_")
    private Date dueDate;
    /**
     * category
     */
    @ApiModelProperty(value = "category")
    @TableField("CATEGORY_")
    private String category;
    /**
     * suspensionState
     */
    @ApiModelProperty(value = "suspensionState")
    @TableField("SUSPENSION_STATE_")
    private Integer suspensionState;
    /**
     * tenantId
     */
    @ApiModelProperty(value = "tenantId")
    @TableField("TENANT_ID_")
    private String tenantId;
    /**
     * formKey
     */
    @ApiModelProperty(value = "formKey")
    @TableField("FORM_KEY_")
    private String formKey;
    /**
     * claimTime
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "claimTime")
    @TableField("CLAIM_TIME_")
    private Date claimTime;
}
